package com.aizuda.boot.modules.business.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Schema(description = "合同字段值实体")
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("contract_field_value")
public class ContractFieldValueEntity {
    @Schema(description = "属性值ID", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @Schema(description = "合同ID", required = true, example = "1001")
    private Integer contractId;
    
    @Schema(description = "字段ID", required = true, example = "2")
    private Long fieldId;
    
    @Schema(description = "字段值", example = "100000.00")
    private String fieldValue;

    @Schema(description = "字段编码", example = "contract_name")
    private String fieldCode;

    @Schema(description = "创建时间", example = "2023-07-20 10:00:00")
    private Date createdAt;
    
    @Schema(description = "更新时间", example = "2023-07-20 11:00:00")
    private Date updatedAt;
}